Mash tofu and boiled soybeans and place them in a bowl.
Add chopped onion, chopped carrot, salt, and pepper, and mix well.
Shape the mixture into round balls.
Add cooking oil to a pan and heat over medium-low heat.
Place the soybean balls in the pan and cook until golden brown on both sides.