There are three methods of cost  (a) directly tracing costs wherever economically feasible, (b) cause-and-effect, and (c) allocating costs on a reasonable and consistent basis.
Cost can be allocated on a consistent and reasonable basis.