The correlative conjunction 'not only...but also' requires parallel structure. 'Studied' must come before 'not only' so it applies to both subjects: 'studied not only Maths but also Physics.' Placing 'not only' before 'studied' would require repeating it for both verbs.