Shell Interview Question

The Problem Solving Is just Simple Math, But the time is really short. Average 1 min for 1 Question