If business A asks business B for a loan and business A stipulates the interest. If business B offers the loan and is paid the interest back does this count as riba?

Depends if businesses are run by Muslims or not.

See here:

https://www.sistani.org/english/qa/01220/