Help baby ear infection

Bre
My friend 1yo has ear infection in both ears is it ok for her to give Motrin and if fever is still up to switch to tynol ?