going from:
CO2 + PEP ------(needs 1 ATP)----> Oxaloacetate
then from:
Oxaloacetate -------(needs 1 NADH)-----> malate
Just remember that the ATP is not directly used in the formation of oxaloacetate. But rather it is used by a kinase to "activate" PEP carboxylase (the enzyme responsible for the formation of oxaloacetate)