Hello fellow Tarheel::: Why don't you check the fluid in the trans first. If it is on the full mark, I would drain it in a container that I could tell how much fluid is in it; ie, one gallon,, two gallon.. Know what I mean???
As far as the oil in motor I would say aroung 4 - 5 quarts. Are changing the Hydrolic filter also?? If you have one;;;;;;;; I just done all that to my ym226 that has power shift, so fluids would be different. I'm looking at a ym240 service manual;; two cylinder engine.. Lub system: 1 US gal...
For the transmission I would say around 4 - 5 gallons. I had to use Transmission/Hydrolic oil,, not sure what you would use....