Two machines, Machine X and Machine Y, are used to produce parts. Machine X produces 6 parts per hour, while Machine Y produces 8 parts per hour. Both machines produced the same total number of parts. If Machine Y ran for 2 fewer hours than Machine X, how many parts did Machine X produce?
36
40
44
48
52