Application of Direct and Inverse Variation