Amazon interview question

basic interview and math question about allocating resource.