Assumptions: The contents of the vessel are well mixed (this means the composition you remove is the same throughout the vessel) and it is a binary mixture containing only petrol and kerosene

Let k = amount of kerosene, p = the amount of petrol and V = volume

(eq1)

(eq2)

Rearrange eq2: (eq3)

You now have two equations in k and p (V will cancel)