Comparison of Tc in La2−xSrxCuO4 and YBa2Cu3O7 within a simple density of states model