Remaining Distance = 180miles-90miles= 90miles
Time taken for first part of her journey= 90miles / 30miles/h= 3hours
To have average speed of 40mph,
Let the time taken for second part be xh
180 / 3h+xh =40
3+x= 4.5h
x =1.5h
Constant speed she must drive = 90miles / 1.5h = 60mph