insert into table3(studentid, instructorid, mathmarks, physicsmarks) (select a.studentid, a.instructorid, b.mathmarks, b.physicsmarks from table2 b, table1 a where b.studentid = a.studentid)
Or
create table3 with rows...
eg.
create table table3(studentid, instructorid, mathmarks...