w varies jointly as cand the square of a and inversely as b