Autumn and her children went into a bakery and she bought $5 worth of donuts and cookies. Each donut costs $1 and each cookie costs $0.50. She bought a total of 6 donuts and cookies altogether. Graphically solve a system of equations in order to determine the number of donuts, x, and the number of cookies, y, that Autumn bought.