In the J-tube above, Y and X are on the same horizontal level and 30cm3…