The increasing use of relays in wireless communication systems is a driving force to explore innovative techniques that can improve the quality of service as well as enhance the coverage in wireless systems. In this article, we propose a two-step approach for subcarrier allocation and power allocation in the downlink of an OFDM-based amplify-and forward relaying system. In the first step, the total power is allocated to mobile users and relays based on the optimum power ratio derived for the single-relay system. In the second step, subcarriers are assigned to the users based on cooperative subcarrier allocation algorithms. Compared to the non-cooperative algorithm with flat power allocation, the total throughput is shown to improve by applying the two-step cooperative subcarrier allocation and power allocation algorithms.