A↔F,B↔P,C↔D
A↔F,B↔D,C↔P
A↔D,B↔P,C↔F
A↔P,B↔F,C↔D
Magnet A is allowing all the field lines passing through it, therefore it is ferromagnetic. Magnet B is repelling the field lines therefore it is diamagnetic. Magnet C is attracting the field lines therefore it is paramagnetic.