Marta bought five textbooks on sale, for a total of 5 * 10 = $<<5*10=50>>50.
Three textbooks from the bookstore had a cost of 3 * 40 = $<<3*40=120>>120.
That means that Marta spent in total 50 + 40 + 120 = $<<50+40+120=210>>210 on textbooks.
#### 210