RMD from Nondeductible IRA and Rollover IRA, Cost basis

We have both nondeductible Traditional IRA (with a cost basis), and a Rollover IRA from Employer.

The major financial Institution calculated the RMD  and the entire amount was dispersed from only the nondeductible Traditional IRA. The box 'taxable amount not determined is checked. The institution gave form 5498s for both IRAs.  Which fair market value account should I enter on Form 8606 ( Nondeductible IRAs) ? Both IRAs were used to calculate RMD but all were paid out from the nondeductible IRA which has a cost basis. Thanks you