To write the equation of a line, you need the slope and the y-intercept. The slope of each line is -3. Find the y-intercept on the graph and then substitute it into the equation y = mx+b for b.
If the puppets both have the same number of buttons, you have to find the largest number that will fit into both numbers. In this case that would be 8: