Modeling the giant arcs in A370 and A2390