Toyota and BMW are collaborating to develop two sports cars.