A young boy learns how to ride a horse
The child and his pet play on the bed.
The child can not play on the bed with his pet if he learns how to ride a horse in sentence one
A boy cannot learn to ride a horse on the bed.
The child either learns how to ride a horse or he plays his pet on the bed.