Bob paid $1210 for five tables and seven chairs for his company. Each table cost three times as much as each chair. If Ann brought 8 such tables and 4 such chairs, how much money will she have to pay?