The ratio of dales pencils to max’s pencils is 8 to 5. Dale lost 9 pencils and now has the same amount as max. how many pencils did dale start out with?

5/8 d = d-9

solve for d.