Find the preposition, the prepositional phrase, and the word the prepositional phrase
modifies.

Most of them had spent many hours working on their research.