St Helens and Salford are through to the quarter-finals of the Challenge Cup after beating Leeds and Bradford respectively.