It's also quite easy to do intuitively.
Since Misha is missing only one kopeck, had Masha owned any amount, the sum would have been enough to buy the book.
Therefore, Misha doesn't have any money, and the price book is what Misha is missing : 7 kopecks.