How do you solve the problem and also graph it?