Two variables P and L are such that P varies partly as L and partly as the square root of L .Determine the relationship between P and L given that when L=16,P=500and when L=25,P=800

P = aL + b√L

now you have
16a+4b = 500
25a+5b = 800
Now just solve for a and b