We have studied the role of interlayer attractive interaction in a high-Tc system having two layers per unit cell. The single band two-layer tight binding model Hamiltonian is considered and the double time Green's function technique is applied within the mean field approximation. The expressions for the hole density, transition temperature, and intra- and interlayer order parameters are obtained which are found to be dependent on the interlayer interaction and other parameters appearing in the Hamiltonian. The numerical analysis shows that the coupling of the charge carriers (holes) between the layers provides better conditions for the stabilization of long-range order and high superconducting transition temperature in layered superconductors. It is also observed that superconductivity is confined to a narrow region of hole concentration and the single particle tunneling suppresses the transition temperature.