awk modifying entries on 2 lines at 2 positions

Hi
this script adds text in the correct place on one line only, in a script.
awk 'BEGIN{
printf "Enter residue and chain information: "
getline var < "-"
split(var,a)
}
/-s rec:/{$7=a[1]; }

{print}' FLXDOCK

but I need the same info added at position 7 on line 34 and position 5 on line 24.

This whole file needs directing to a newfile.

Will someone help pls?

NR == 24 { $5 = a[1] }
NR == 34 { $7 = a[1] }