The unit rate you're trying to find is pages per day(or p/d), so the equation needs to have both a unit for pages and for days.
The equation we have is:

If they read 5,249
pages, then we can include the unit for pages in the equation.
Since we also know that
d is the number of days it took, you can replace
d with days.
The equation becomes:

Now that we have one variable, we can solve for
p/d:

Thus it took them 181 days to read it all.
If Johnny read 5,249 pages over 181 days and the unit rate is pages per day(p/d), then the equation for finding
p/d is:
Johnny read 29 pages per day.