The problem is pretty straightforward, we can calculate the empty space for each passenger by d = ( W - G ) / 2 and need to handle the precision result by choosing the correct data type for the length of space.