This was a young-adult book, paperback, I'm pretty sure. I read it somewhere between 1986 and 1990 in my elementary school, although it might have been older than that. There were a series of short stories, each of which asked the reader to solve an aspect of the stories. Unfortunately, only two stories have stuck with me, only one of which I remember clearly the ghost aspect.
First story
At least two boys (there might have been more) come upon a house, which they decide to explore. They found a room with plates and cutlery set out as if for a meal long-deserted. There's a thick layer of dust and webs indicating that it had abandoned for some time. One of the boys picks up an item from the table, then immediately shouts for his companion to leave with him. I don't remember if something actually pursued them, but outside, the second boy asks how the first boy knew of the danger.
The answer was that, when he picked the item up, it was still warm, as if someone had been holding it shortly before the boys entered. In retrospect, it might have also been candle wax that was still warm... but the hint was indeed the warmth indicating recent usage.
For some reason, part of me wants to suggest that this story was re-used for some kid investigators, maybe The Three Investigators, with the implication being that the building held mundane criminals, but that might be a false memory.
Second story
The second story had a family entertaining a ghost inspector. They said they'd had a number of strange incidents, things being moved, odd sounds, including a piano being played in the living room. There was an illustration of an overhead view of the living room. The inspector quickly dismisses their claims, giving reasons why there might have been strange noises, and concluding that their cat must be the source of the piano playing. After he leaves, the piano starts playing again and the family discuss how the inspector didn't even stay to hear the important detail to prove he was wrong about his conclusion.
Namely, the overhead view shows the fact that there is no piano in the room.