I think your should modify your second method first, since the vans is not used, and bus is not claimed.



public static int vans(int vans){
int rem = vans % 45;
if (rem % 45== 0)
return (0);...