solve mixed output