Together a chair, a table, and a lamp cost $562. The chair costs 4 times as much as the lamp, and the table costs $23 less than the chair. Find the cost of the table.