Solve the following word problem:
A forest inhabited only by borogoves and mome raths contains eighty-two creatures. Borogoves are two-legged animals, while a mome rath has 4 legs. If the forest contains a total of 234 legs, how many borogoves and how many mome raths live in the forest?