Three genes on the X chromosome of Drosophila show these recombination frequencies:
| Gene pair | Recombination |
|---|---|
| y and w | 1.3% |
| w and m | 37.2% |
| y and m | 38.5% |
Assuming the distances add, which gene lies in the middle, and which two genes are most likely to be inherited together?

