Can someone check this for me please..

18 MB of data are to be transmitted over a a megabyte per second connection. How long should the complete transaction take, to the nearest 0.1s.

Size of file / data rate so,
18,874,368 bytes / 4,000,000 = 4.718592 = 4.7 is that correct

a 50 MB file compressed using a ratio of 10 what is the compressed file size

50MB / 10 = 5 MB

Please check for me thanks !

Correct.

In practice, the transmission time is usually longer because of collisions and other obstacles.